package com.example.dezhou_puke.entity;

/**
 * @ClassName: Puke
 * @Description: TODO
 * @Author: YangGuisen
 * @Date: 2018/6/5 13:49
 * @Version: 1.0
 */
public class Puke {

    /**
     * 牌面数字
     */
    private Integer num;
    /**
     * 牌面花色
     */
    private String color;

    public Puke() {

    }

    public Puke(Integer num, String color) {
        this.num = num;
        this.color = color;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String toString(){
        String result="";
        switch (num){
            case 11:
                result=color+"J";break;
            case 12:
                result=color+"Q";break;
            case 13:
                result=color+"K";break;
            case 14:
                result=color+"A";break;
            case 1:
                result=color+"A";break;
            default:
                result=color+num;
        }
        return result;
    }
}
